package com.epfresh.bean;

import java.util.List;

/**
 * Created by wzh on 2016/4/12.
 */
public class ContentEntity<T> {

    /**
     * content : [{"id":117,"title":"菠菜","level":"特级商品","price":"0.01元/箱","thumbnail":"http://7xp3p0.com2.z0.glb.qiniucdn.com/2016%2F4%2F8%2F1460353650164_%E8%8F%A0%E8%8F%9C.jpg-PRODUCTTHUMBNAIL","origin":"徐州","mark":null,"pack":"1公斤/箱","type":1,"storeId":48},{"id":100,"title":"菠萝蜜3","level":"特级","price":"0.01元/箱","thumbnail":"http://7xp3p0.com2.z0.glb.qiniucdn.com/2016%2F4%2F6%2F1459931709766_%E8%8F%A0%E8%90%9D%E8%9C%9C1.jpg-PRODUCTTHUMBNAIL","origin":"","mark":"http://7xp3p0.com2.z0.glb.qiniucdn.com/2016%2F3%2F31%2F1459488895271_1.jpg-PRODUCTMARK","pack":"1公斤/箱","type":1,"storeId":45}]
     * last : false
     * totalElements : 12
     * number : 0
     * size : 2
     */

    private boolean last;
    private int totalElements;
    private int number;
    private int size;
    private List<T> markList;
    private List<T> content;
    private List<T> result;
    private List<T> response;
    private List<Ad> ads;
    private List<HomeCommTag> tags;
    private boolean showOfferThree;
    private int serviceStoreId = -1;

    public int getServiceStoreId() {
        return serviceStoreId;
    }

    public void setServiceStoreId(int serviceStoreId) {
        this.serviceStoreId = serviceStoreId;
    }

    public List<T> getMarkList() {
        return markList;
    }

    public void setMarkList(List<T> markList) {
        this.markList = markList;
    }

    public boolean isShowOfferThree() {
        return showOfferThree;
    }

    public void setShowOfferThree(boolean showOfferThree) {
        this.showOfferThree = showOfferThree;
    }

    public List<HomeCommTag> getTags() {
        return tags;
    }

    public void setTags(List<HomeCommTag> tags) {
        this.tags = tags;
    }

    public List<Ad> getAds() {
        return ads;
    }

    public void setAds(List<Ad> ads) {
        this.ads = ads;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    public List<T> getResponse() {
        return response;
    }

    public void setResponse(List<T> response) {
        this.response = response;
    }

    public void setLast(boolean last) {
        this.last = last;
    }

    public void setTotalElements(int totalElements) {
        this.totalElements = totalElements;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    public boolean getLast() {
        return last;
    }

    public int getTotalElements() {
        return totalElements;
    }

    public int getNumber() {
        return number;
    }

    public int getSize() {
        return size;
    }

    public List<T> getContent() {
        return content;
    }

    @Override
    public String toString() {
        return "ContentEntity{" +
                "last=" + last +
                ", totalElements=" + totalElements +
                ", number=" + number +
                ", size=" + size +
                ", content=" + content +
                '}';
    }
}
